<h3>Orden de Servicio Nro: <?php echo h($service_order['ServiceOrder']['numero_orden_de_servicio']); ?></h3>


<table class="table table-striped withBottomLine"> 
<tr>
<td class="spnInfo">Nombre: </td><td><?php echo h($service_order['ServiceOrder']['client_id']); echo " - "; echo h($service_order['Client']['nombre']);?></td>
</tr>

<tr>
<td class="spnInfo">Fecha Ingreso: </td><td><?php echo h($service_order['ServiceOrder']['fecha']);?></td>
</tr>

<tr>
<td class="spnInfo">Fecha Ingreso:</td><td><?php echo h($service_order['ServiceOrder']['fecha']);?></td>
</tr>

<tr>
<td class="spnInfo">Fecha estimada de retiro: </td><td><?php echo h($service_order['ServiceOrder']['fecha_estimada_retiro']);?></td>
</tr>

<tr>
<td class="spnInfo">Observaciones: </td><td><?php echo h($service_order['ServiceOrder']['observaciones']);?></td>
</tr>

<tr>
<td class="spnInfo">Vendedor:</td> <td><?php echo h($service_order['ServiceOrder']['seller_id']);?></td>
</tr>

</table>

<div class="bs-old-docs">
  <div class="container">
    <?php echo $this->Html->link('  Agregar Cubierta', array('controller' => 'ServiceOrderRows', 'action' => 'ServiceOrderRows',  'action' => 'add',$service_order['ServiceOrder']['id'] ),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); ?>
    <?php echo $this->Html->link('  Imprimir', array('controller' => 'ServiceOrders', 'action' => 'pdf',$service_order['ServiceOrder']['id']), array('class' => 'glyphicon glyphicon glyphicon-print btn btn-primary btn-lg' )); ?>

  </div>
</div>

<table class="table table-striped">
    <tr>
        <th>Id</th>
        <th>Unidad</th>
        <th>Nro de Serie</th>
        <th>Tipo</th>
        <th>Marca</th>
        <th>Medida</th>
        <th>Trabajo</th>
        <th>Estado</th>
        <th></th>
    </tr>
    <?php foreach ($service_order_rows as $order): ?>
    <tr>
        <td>
            <?php echo $this->Html->link($order['ServiceOrderRow']['id'],
array('controller' => 'ServiceOrderRows', 'action' => 'view', $order['ServiceOrderRow']['id'])); ?>
        </td>
        <td><?php echo $order['ServiceOrderRow']['unidad']; ?></td>
        <td><?php echo $order['ServiceOrderRow']['numero_de_serie']; ?></td>
        <td><?php echo $order['ServiceOrderRow']['tipo']; ?></td>
        <td><?php echo $order['CubiertaMarca']['nombre']; ?></td>
        <td><?php echo $order['ServiceOrderRow']['medida']; ?></td>
        <td><?php echo $order['Article']['descripcion']; ?></td>
        <td><?php echo $order['ServiceOrderRowState'][0]['states']['nombre']; ?></td>
    	<td>
        	<?php echo $this->Html->link('Edit', array('controller' => 'ServiceOrderRows','action' => 'edit', $order['ServiceOrderRow']['id'])); ?>
    	</td>
    </tr>

    <?php endforeach; ?>
    <?php unset($order); ?>
</table>
<br />
